//
//  HomeModel.m
//  OrderFood
//
//  Created by xiaofang wang on 2018/12/25.
//  Copyright © 2018年 zhiyuan. All rights reserved.
//

#import "HomeModel.h"
@implementation HomeModel
//模型中的属性和服务器返回的key不一致需要替换

- (void)setRider:(NSDictionary *)rider {
    _rider = rider;
    
    self.head = [NSString stringWithFormat:@"%@%@",PICTURE_DOMAIN,rider[@"head"]];
    
    self.name = rider[@"name"];
    self.riderId = rider[@"id"];
}

@end
